package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;

@Setter
@Getter
@ToString
public class CustomerTraceHistory {
    private Long id;
    //跟进时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date traceTime;
    //跟进内容
    private String traceDetails;
    //跟进方式
    private SystemDictionaryItem traceType;
    //跟进结果
    private Integer traceResult;
    //客户
    private Customer customer;
    //录入人
    private Employee inputUser;

    public String getTraceResultName() {
        switch (traceResult) {
            case 2:
                return "中";
            case 3:
                return "差";
            default:
                return "优";
        }
    }
    /*private Long id;

    private Date traceTime;

    private String traceDetails;

    private Long traceTypeId;

    private Integer traceResult;

    private Long customerId;

    private Long inputUserId;
*/

}